package com.njwd.rpc.consumer.controller;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.njwd.common.rpc.ResponseVo;
import com.njwd.rpc.api.SmsServices;
import com.njwd.rpc.vo.User;


@Controller
@RequestMapping("/s")
public class SmsController {

	@Autowired
	SmsServices smsServices;
	
	
	@RequestMapping(value="/invoke" ,method = RequestMethod.GET)
	@ResponseBody
	public ResponseVo<Boolean> invoke(@RequestParam String m) throws IOException{
		System.out.println("b");
		return smsServices.sendSms(m);
		
		
	}
}
